/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.java.service;

import com.java.dao.TinhDAO;
import com.java.mapbean.Tinh;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author quannq
 */
@Service
public class TinhService extends TinhDAO {

    public List<Tinh> getAll() {
        return findAll();
    }

    public Tinh findId(int id) {
        return findById(id);
    }

    public void saveTinh(Tinh tinh) {
        save(tinh);
    }

    public void updateTinh(Tinh tinh) {
        update(tinh);
    }
}
